Introduction . Spectrometers play a crucial role in scientific research and numerous industrial applications1 , 2. However, traditional spectrometers typically comprise bulky mechanical parts such as optical gratings and Michelson interferometers3. Therefore, the miniaturization of spectrometers while retaining high spectral resolution, broad spectrum sensing, and fast response, at low cost, is a subject of intense research interest due to potential applications in portable...